﻿using RxxAdmin.Model.RootTkey;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RxxAdmin.Model.Entity;
/// <summary>
/// 菜单表
/// </summary>
[SugarTable("SysMenu", "菜单表")]
public class SysMenu : SysRootEntityTkey<int>
{
    /// <summary>
    /// Desc:父级菜单ID
    /// Default:
    /// Nullable:False
    /// </summary>           
    public int ParentId { get; set; }

    /// <summary>
    /// Desc:菜单类型1 .目录 2.菜单
    /// Default:
    /// Nullable:False
    /// </summary>           
    public int MenuType { get; set; }

    /// <summary>
    /// Desc:菜单名称
    /// Default:
    /// Nullable:True
    /// </summary>           
    public string? MenuTitle { get; set; }

    /// <summary>
    /// Desc:路由名称
    /// Default:
    /// Nullable:False
    /// </summary>           
    public string? RouteName { get; set; }

    /// <summary>
    /// Desc:路由路径
    /// Default:
    /// Nullable:False
    /// </summary>           
    public string? RoutePath { get; set; }
    
    /// <summary>
    /// Desc:菜单状态
    /// Default:
    /// Nullable:True
    /// </summary>           
    public int? Status { get; set; }
       
    /// <summary>
    /// Desc:排序
    /// Default:0
    /// Nullable:True
    /// </summary>           
    public int MenuSort { get; set; }

    /// <summary>
    /// Desc:图标
    /// Default:0
    /// Nullable:False
    /// </summary>           
    public string? MenuIcon { get; set; }


    [SqlSugar.SugarColumn(IsIgnore = true)]
    public string? Component { get; set; }
    [SqlSugar.SugarColumn(IsIgnore = true)]
    public List<SysMenu>? Children { get; set; }
}
